package com.iflytek.sbd.po.db;

import com.iflytek.sbd.mybatis.UUIdGenId;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import tk.mybatis.mapper.annotation.KeySql;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @program: sbd
 * @description:
 * @author: 陈亮
 * @create: 2022-02-27 21:30
 */
@Data
@Table(name = "COMPUTER")
public class Computer implements Serializable {

    @Id
    @KeySql(genId = UUIdGenId.class)
    private String id;

    @Column(name = "NAME")
    @NotBlank(message = "name不可以为空")
    private String name;

    @Column(name = "PRICE")
    private String price;
}
